package com.ysu.yybk.util;

import java.sql.Timestamp;
import java.util.Date;

public class DateConvertUtil {

    /**
     * 获取当前时间存入数据库，对应数据库时间类型datetime
     * @return Timestamp
     */
    public static Timestamp date2Timestamp() {
        Date date = new Date();
        return new Timestamp(date.getTime());
    }
}
